﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="EditParam.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Module.Stat.EditParam" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/module/stat/style/StatMain.css" />
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/controls/JskitControls.css" />
    <script type="text/javascript" src="/jskit.org/model/controls/JskitRichDropDownList.js"></script>
    <script type="text/javascript">
        var jrddlItemCat = new JskitRichDropDownList("jrddlItemCat");
        //jrddlItemCat.setSelectAction("OthersOnSelect");
        function OnParamTypeChanged(sender, e) {
            var obj = $("#ItemCategorySelectorBox");
            var oemp = $("#SelectorBox_Empty");
            obj.style.display = (sender.value == "2001") ? "" : "none";
            oemp.style.display = (sender.value != "2001") ? "" : "none";
        }
        function PageOnLoad() {
            jrddlItemCat.deployTree(fixId("txt_ItemCategoryKey"), fixId("hid_ItemCategoryKey"), "Ws/_Category.aspx?ok=&rk=");
            var obj = $("#" + fixId("ddl_FilterType"));
            OnParamTypeChanged(obj, null);
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
参数设置
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
   <div class="action_bar">
        <asp:Button ID="btn_save" runat="server" Text="保存" OnClick="btn_save_Click" />
        <input type="reset" value="重置" />
        <input type="button" onclick="jskitBulter.redirect('Admin/Module/Stat/List.aspx')" value="取消" />
    </div>
    <fieldset>
        <legend>数据源</legend>
        <table border="0" cellpadding="0" cellspacing="0" class="edit_form">
            <tr>
                <td class="edit_form_item_title">
                    统计/列：
                </td>
                <td class="edit_form_item_content">
                    <asp:Label runat="server" ID="lab_StatName"></asp:Label>
                    <asp:HiddenField runat="server" ID="hid_StatKey" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">名称：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_FilterName" Width="300px"></asp:TextBox>
                </td>
            </tr>
             <tr>
                <td class="edit_form_item_title">
                    <span class="required">Label：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_FilterLabel" Width="300px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">参数名：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_DataField" Width="300px"></asp:TextBox>
                </td>
             </tr>
             <tr>
                <td class="edit_form_item_title">
                    <span class="required">参数类型：</span>
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:DropDownList runat="server" ID="ddl_FilterType" onchange="return OnParamTypeChanged(this,event);"></asp:DropDownList>
                </td>
            </tr>
             <tr>
                 <td class="edit_form_item_title">
                    选择对象：
                </td>
                <td class="edit_form_item_content" colspan="3"  style="height:30px">
                    <div id="SelectorBox_Empty"><input type="text" value="无" disabled="disabled" /></div>
                    <div id="ItemCategorySelectorBox">
                        <asp:TextBox runat="server" ID="txt_ItemCategoryKey"></asp:TextBox>
                        <asp:HiddenField runat="server" ID="hid_ItemCategoryKey" />
                    </div>
                </td>
             </tr>
             <tr>
               <td class="edit_form_item_title">
                    <span class="required">表单项名：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_FormFieldKey" Width="300px"></asp:TextBox>
                </td>
            </tr>
             <tr>
               <td class="edit_form_item_title">
                    <span class="required">数据类型：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:RadioButtonList runat="server" ID="radl_DataType" RepeatDirection="Horizontal">
                        <asp:ListItem Value="string" Text="文本" Selected="True"></asp:ListItem>
                        <asp:ListItem Value="number" Text="数值"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
           <tr>
                <td class="edit_form_item_title">
                    缺省值：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_DefaultValue" Width="300px" Text=""></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">排序值：</span>
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:TextBox runat="server" ID="txt_OrderNumber" Text="0"></asp:TextBox>
                </td>
            </tr>
          </table>
    </fieldset>
    </asp:Content>
